/*
 * @Author: 魏进 3413105907@qq.com
 * @Date: 2025-03-21 10:59:21
 * @LastEditors: 魏进 3413105907@qq.com
 * @LastEditTime: 2025-03-21 14:19:18
 * @FilePath: \client\js\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

// document.write('<script src="./page.js" type="text/javascript" charset="utf-8"></script>');


window.onload = function () {
    

    var vm = new Vue({
        el: "#app",
        data: {
            username:"",
            password:"",
        },
        methods: {

           login(){
            if(!this.username){
                alert("请先输入用户名")
                return
            }
            if(!this.password){
                alert("请先输入密码")
                return
            }
            window.location.href = "chat.html?user=" + this.username
        }
    } 
        })
}